import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  lang: 'zh',
    title: "Mi7Soft",
    description: "自用php框架",
    base: '/mi7soft/',
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        search: {
            provider: 'local',
            options: {
                miniSearch: {
                    options: {},
                    searchOptions: {}
                },
                locales: {
                    zh: {
                        translations: {
                            button: {
                                buttonText: '搜索文档',
                                buttonAriaLabel: '搜索文档'
                            },
                            modal: {
                                noResultsText: '无法找到相关结果',
                                resetButtonTitle: '清除查询条件',
                                footer: {
                                    selectText: '选择',
                                    navigateText: '切换'
                                }
                            }
                        }
                    }
                }
            }
        },
        nav: [
            {text: 'Home', link: '/'},
            {text: 'Examples', link: '/markdown-examples'}
        ],

        sidebar: [
            {
                text: '关于',
                items: [
                    {text: 'About', link: '/about'},
                    {text: '目标', link: '/readme'},
                ]
            },
            {
                text: '设计',
                items: [
                    {text: '框架设计', link: '/framework'},
                    {text: 'Config', link: '/config'},
                    {text: '角色', link: '/role'},
                    {text: 'Context', link: '/context'},
                    {text: 'Controller', link: '/controller'},
                    {text: 'Service', link: '/service'},
                    {text: 'Model', link: '/model'},
                ]
            },
            {
                text: 'Examples',
                items: [
                    {text: 'Markdown Examples', link: '/markdown-examples'},
                    {text: 'Runtime API Examples', link: '/api-examples'}
                ]
            }
        ],

        socialLinks: [
            {icon: 'github', link: 'https://gitee.com/gx1727/mi7soft'}
        ]
    }
})
